class MyPcosCB : public PcosCallback 
{ 
public: 
    MyPcosCB() 
    { 
    } 
    void PlcOn() 
    { 
        printf("PcosCallback: PlcOn\n"); 
    } 
    bool PlcLoading() 
    { 
        printf("PcosCallback: PlcLoading\n"); 
        return true; 
    } 
    bool PlcStarting(enum PlcStartMode mode, bool& retry) 
    { 
        printf("PcosCallback: PlcStarting\n"); 
        return true; 
    } 
    void PlcRunning() 
    { 
        printf("PcosCallback: PlcRunning\n"); 
    } 
    void PlcHalt() 
    { 
        printf("PcosCallback: PlcHalt\n"); 
    } 
    bool PlcStopping(bool& retry) 
    { 
        printf("PcosCallback: PlcStopping\n"); 
        return true; 
    } 
    void PlcStop() 
    { 
        printf("PcosCallback: PlcStop\n"); 
    } 
    bool PlcResetting() 
    { 
        printf("PcosCallback: PlcResetting\n"); 
        return true; 
    } 
    void PlcException(int code) 
    { 
        printf("PcosCallback: PlcException\n"); 
    } 
}; 
